<?php $this->header(); ?>
<div class="wrap">

    <!-- start -->
    <div class="nav">
        <div class="return"><a href="/?g=Admin&m=<?php echo MODULE; ?>&a=index">返回上一级</a></div>
        <ul class="cc">
            <li class="current"><?php echo isset($_GET['id']) ? '<a href="/?g=Admin&m=' . MODULE . '&a=edit&id=' . $id . '">编辑用户</a>' : '<a href="/?g=Admin&m=' . MODULE . '&a=add">添加用户</a>' ?></li>
        </ul>
    </div>
    <form class="J_ajaxForm" action="<?php echo $actionUrl; ?>" method="post" enctype="multipart/form-data">
        <div class="h_a">详细信息</div>
        <div class="table_full">
            <table width="100%">
                <col class="th" />
                <col/>

                <tr>
                    <th>用户组</th>
                    <td>
                        <select name="user_group_id"><option>请选择</option><?php echo $group; ?></select>
                    </td>
                </tr>
                <tr>
                    <th>账号</th>
                    <td>
                        <input name="account" type="text" class="input length_5" aria-label="" accesskey="" placeholder="" speech="" value="<?php echo $account; ?>">

                    </td>
                </tr>
                <tr>
                    <th>密码</th>
                    <td>
                        <input name="password" type="password" class="input length_5" aria-label="" accesskey="" placeholder="" speech="" value="">
                        <div class="fun_tips">
                            <?php if (!empty($_GET['id'])): ?>
                            为空则不修改密码
                            <?php endif; ?>
                        </div>
                    </td>
                </tr>
                <tr>
                    <th>邮箱地址</th>
                    <td>
                        <input name="mail" type="text" class="input length_5" aria-label="" accesskey="" placeholder="" speech="" value="<?php echo $mail; ?>">

                    </td>
                </tr>
                <tr>
                    <th>手机号码</th>
                    <td>
                        <input name="tel" type="text" class="input length_5" aria-label="" accesskey="" placeholder="" speech="" value="<?php echo $tel; ?>">

                    </td>
                </tr>
                <tr>
                    <th>名称</th>
                    <td>
                        <input name="nickname" type="text" class="input length_5" aria-label="" accesskey="" placeholder="" speech="" value="<?php echo $nickname; ?>">

                    </td>
                </tr>

                <tr>
                    <th>启用状态</th>
                    <td>
                        <label><input type="radio" name="status" value="0" <?php if (!empty($_GET['id']) && $status == 0): ?>checked="checked"<?php endif; ?>><span>禁用</span></label>
                        <label><input type="radio" name="status" value="1" <?php if (!empty($_GET['id']) && $status == 1): ?>checked="checked"<?php elseif (empty($_GET['id'])): ?>checked="checked"<?php endif; ?>><span>启用</span></label>
                    </td>
                </tr>

            </table>
        </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button>
            </div>
        </div>
    </form>

    <!-- end -->

</div>

<?php $this->footer(); ?>